package com.etbsms.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

import com.etbsms.dao.ICodePlantDAO;
import com.etbsms.domain.CodePlant;
import com.etbsms.service.ICodePlantService;

@Service
@Component("codePlantService")
public class CodePlantServiceImpl implements ICodePlantService {

	@Autowired
	private ICodePlantDAO codePlantDAO;
	
	@Override
	public List<CodePlant> getAll() {
		// TODO Auto-generated method stub
		return codePlantDAO.getAll();
	}

	@Override
	public boolean save(CodePlant entity) {
		// TODO Auto-generated method stub
		return codePlantDAO.save(entity);
	}

	@Override
	public CodePlant get(String code) {
		// TODO Auto-generated method stub
		return codePlantDAO.get(code);
	}

	@Override
	public List<CodePlant> query(String qr) {
		// TODO Auto-generated method stub
		return codePlantDAO.query(qr);
	}

	@Override
	public List<CodePlant> getAll2() {
		// TODO Auto-generated method stub
		return codePlantDAO.getAll2();
	}

	@Override
	public String getMaxSeqNo() {
		// TODO Auto-generated method stub
		return codePlantDAO.getMaxSeqNo();
	}
}
